import axios from 'axios'

export let PATH = ''
const PATH_DEV = 'http://127.0.0.1:8888/api'
const PATH_PRO = 'https://api.wanko.top/vue-echarts/'

if (process.env.NODE_ENV === 'development') {
  PATH = PATH_PRO
} else {
  PATH = PATH_PRO
}
const request = axios.create({
  baseURL: PATH_PRO
})

export default request
